package com.xbongbong.pro.form.pojo.dto;

import com.xbongbong.paas.pojo.BusinessRulesPoJo;
import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

/**
 * @author 吴峰
 * @version v1.0
 * @date 2019/6/29 16:27
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class FormUpdateBusinessRuleDTO extends BaseDTO {
    private static final long serialVersionUID = -8976005883804145582L;

    @NotNull(message = "{dto.msg.formId.NotNull}")

    private Long formId;
    @NotNull(message = "{dto.msg.appId.NotNull}")
    private Long appId;

    @NotNull(message = "{dto.msg.menuId.NotNull}")
    private Long menuId;

    @NotNull(message = "{dto.msg.businessType.NotNull}")
    private Integer businessType;
    @NotNull(message = "{dto.msg.saasMark.NotNull}")
    private Integer saasMark;

    private Long businessRuleId;

    /**
     * 业务规则
     */
    @Valid
    private BusinessRulesPoJo businessRule;


}
